Upgrade to Kit v7 - #169
Conversation
|
@macalinao is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR upgrades all
Confidence Score: 5/5Safe to merge — version bumps are consistent across the workspace, the new The change is a mechanical dependency upgrade with a targeted type-level fix. Every No files require special attention. Important Files Changed
Reviews (2): Last reviewed commit: "Upgrade to Kit v7" | Re-trigger Greptile |
| --- | ||
| "@solana/client": patch | ||
| --- |
There was a problem hiding this comment.
The changeset bump level is
patch, but this PR bumps a major dependency version (@solana/kit v6 → v7) and introduces a new exported type (SupportedTransactionVersion). Per semver convention, adding new public API surface or a significant dependency upgrade is typically a minor bump so that downstream consumers can see from the version number that something meaningfully changed.
| --- | |
| "@solana/client": patch | |
| --- | |
| --- | |
| "@solana/client": minor | |
| --- |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
8fbe654 to
75d0ac6
Compare
Summary
Upgrades
@solana/kitand the related@solana/*catalog packages from v6 to v7.solanacatalog entries (@solana/kit,@solana/compat,@solana/addresses,@solana/codecs-core,@solana/codecs-strings,@solana/errors,@solana/keys,@solana/promises,@solana/signers,@solana/transactions,@solana/transaction-confirmation,@solana/transaction-messages) to^7.0.0, plus the@solana/kitdeps in the examples and the root@solana/codecs-stringsdevDependency.maxInstructionsPerTransactionfrom 64 to 16. The transaction helpers adopt this new default, so preparing a transaction whose instructions no longer fit in a single message (previously up to 64) will now produce a multi-transaction plan and throw. Callers relying on the old limit should split their instructions.TransactionVersionwidening: Kit v7 adds transaction version1toTransactionVersion, butcreateTransactionMessageonly acceptsExclude<TransactionVersion, 1>. The transaction helpers now type theirversioninputs with a newSupportedTransactionVersionalias (exported fromfeatures/transactions.ts) to reflect the versions they actually support. This resolves the type errors introduced by the widened union.Changeset:
@solana/clientminor bump.Testing
pnpm lintpnpm testpnpm buildpnpm typecheck